<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 CalenderUI();
 link_js(array('jquery.fixedheader','bootstrap-typeahead'),'asset/js/');
 ?>
<!--<div class='container'>-->
     <div class="tabbable"> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style=''>
	   <br>
            <div class="tab-pane" id="table1"></div>
            <div class="tab-pane active" id="table2"><?=$this->zetro_auth->allAuth($frm3,'daftar_gaji');?><?=$this->zetro_auth->allAuth($list,'daftar_gaji');?></div></div>
       </div>
		<input type='hidden' id='row_aktif' value='<?=empty($_GET['ot'])?'n':$_GET['ot'];?>'/>
		<input type='hidden' id='rows' value='<?=base64_decode($this->session->userdata('menus'));?>'/>
		<input type='hidden' id='lap' value='<?=empty($_GET['l'])?'':$_GET['l'];?>'/>
    </div>
<!--</div>-->
<?=$modal;?>
<script language='javascript'>
$(document).ready(function(e) {
	$('#id_lokasi').html("<?=(@$_GET['ot']=='y')?$lok2:'<option value=\'0000\'>Koperasi</option>';?>").change(function(){_show_data('1')})
	$('#bln').html("<?=$bln;?>").change(function(){ _show_data('');});
	$('#thn').html("<?=$thn;?>").change(function(){ _show_data('');});
	$('#c_cari').click(function(){ _show_data('');});
	$('#pros').click(function(){ _show_data('');});
	if($('#lap').val()!=''){
		 _show_data('');
		 $('#pros').hide();
		 $('#print').show();
	}else{
		$('#pros').show();$('#print').hide();
	}
	
})

function _show_data(tp)
{
		show_indicator2('txt');
		$.post('getdatagajian',$('#frm1').serialize()+'&ot='+$('#row_aktif').val()+'&l='+$('#lap').val(),function(result)
		{
			$('#NewList tbody').html(result);
			(tp=='')?
			$('#NewList').fixedHeader({'width':(screen.availWidth-50),'height':(screen.availHeight-370)}):'';
				$('#txt').html('');
		})
}
function btn_click(id,aksi)
{
	switch(aksi)
	{
		case "update":
		break;
	}
}
</script>